//Copy of TimeSlot pre-butchering

package vanScheduling;

import db.TimeSlotDAO;
import java.util.List;
import java.sql.Time;
import java.util.ArrayList;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.SelectItem;

@ManagedBean
@SessionScoped
public class TimeSlotCopy {

    int id;
    int driverID;
    String weekday;
    Time startTime;
    Time endTime;
    String driverName;
    List<SelectItem> days = new ArrayList<SelectItem>();

    public TimeSlotCopy() {
        days.add(new SelectItem("Monday", "Monday"));
        days.add(new SelectItem("Tuesday", "Tuesday"));
        days.add(new SelectItem("Wednesday", "Wednesday"));
        days.add(new SelectItem("Thursday", "Thursday"));
        days.add(new SelectItem("Friday", "Friday"));
        days.add(new SelectItem("Saturday", "Saturday"));
        days.add(new SelectItem("Sunday", "Sunday"));
    }

    public TimeSlotCopy(int id, int driverID, String day, Time startTime, Time endTime, String driverName) {
        super();
        this.id = id;
        this.driverID = driverID;
        this.weekday = day;
        this.startTime = startTime;
        this.endTime = endTime;
        this.driverName = driverName;
    }

    public int getId() {
        return id;
    }

    public int getDriverID() {
        return driverID;
    }

    public String getWeekday() {
        return weekday;
    }

    public void setWeekday(String day) {
        this.weekday = day;
    }

    public Time getStartTime() {
        return startTime;
    }

    public void setStartTime(Time startTime) {
        this.startTime = startTime;
    }

    public Time getEndTime() {
        return endTime;
    }

    public void setEndTime(Time endTime) {
        this.endTime = endTime;
    }

    public String getDriverName() {
        return driverName;
    }

    /*public String addTimeSlot() {
        if (TimeSlotDAO.addTimeSlot(this)) {
            return "timeSlotList";
        } else {
            return "timeSlotFailure";
        }
    }

    public List<TimeSlotCopy> getTimeSlots() {
        return TimeSlotDAO.getTimeSlots();
    }*/

    public List<SelectItem> getDays() {
        return days;
    }
}
